package com.yunqing.restkeeper.store.api.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.time.LocalDateTime;

/**
 * @ClassName BaseStoreEntity
 * @Description TODO
 * @author: puyunqing
 * @Date: 2025/7/21
 */
@Data
public class BaseStoreEntity {

    @Schema(name = "lastUpdateTime", description = "最后更新时间")
    @TableField(value = "last_update_time",fill = FieldFill.INSERT_UPDATE)
    protected LocalDateTime lastUpdateTime;

    @JsonIgnore
    @Schema(name = "isDeleted", description = "是否删除 1是删除 0 未删除")
    @TableLogic
    @TableField(value = "is_deleted")
    protected Integer isDeleted;

    @Schema(name = "shopId", description = "所属商户id")
    @TableField(value = "shop_id")
    protected String shopId;

    @Schema(name = "storeId", description = "门店id")
    protected String storeId;

}
